home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 119
/
(Vol 119) Nov 09 2010.iso
/
Games
/
magic_balls.swf
/
scripts
/
DefineSprite_109
/
frame_2
/
DoAction.as
Wrap
Text File
|
2010-11-09
|
919b
|
32 lines
setProperty(this, _xscale, getProperty(this, _xscale) + 25);
setProperty(this, _yscale, getProperty(this, _yscale) + 25);
ballnumber = 1;
while(ballnumber < _root.totalballs)
{
nowtesting = "_root.ball" + ballnumber;
if(this.hitTest(nowtesting) && eval(this add "color") eq eval(nowtesting add "color") && nowtesting != this._name)
{
_root.myscore += 10;
_root.remove += 1;
set("_root.remove" add _root.remove,nowtesting);
tellTarget(nowtesting)
{
gotoAndStop(2);
}
removeme += 1;
}
ballnumber++;
}
setProperty(this, _xscale, getProperty(this, _xscale) - 25);
setProperty(this, _yscale, getProperty(this, _yscale) - 25);
if(0 < removeme)
{
_root.poping += 1;
set("_root.remove" add _root.remove,this._name);
removeMovieClip(this);
_root.balls -= 1;
_root.remove = 0;
}
_root.removelist = 0;
gotoAndStop(1);